<table mat-table [dataSource]="dataSource" class="mat-elevation-z8">

    <ng-container matColumnDef="uniqueId">
      <th mat-header-cell *matHeaderCellDef> UNIQUE ID. </th>
      <td mat-cell *matCellDef="let element"> {{element.uniqueId}} </td>
    </ng-container>
  
    <ng-container matColumnDef="team1">
      <th mat-header-cell *matHeaderCellDef> TEAM1 </th>
      <td mat-cell *matCellDef="let element"> {{element.team1}} </td>
    </ng-container>
    <ng-container matColumnDef="team2">
      <th mat-header-cell *matHeaderCellDef> TEAM2 </th>
      <td mat-cell *matCellDef="let element"> {{element.team2}} </td>
    </ng-container>
    <ng-container matColumnDef="matchStarted">
      <th mat-header-cell *matHeaderCellDef> MATCHSTARTED </th>
      <td mat-cell *matCellDef="let element"> {{element.matchStarted}} </td>
    </ng-container>
  
    <ng-container matColumnDef="date">
      <th mat-header-cell *matHeaderCellDef>MATCH DATE </th>
      <td mat-cell *matCellDef="let element"> {{element.date}} </td>
    </ng-container>
    
    <ng-container matColumnDef="action">
            <th mat-header-cell *matHeaderCellDef>ACTION </th>
            <td mat-cell *matCellDef="let element"> 
                <button mat-raised-button color="accent" (click)="addFavourite(element)">FAVOURITE</button>
            </td>
      </ng-container>
    <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
    <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
  </table>
  